<?php /*a:3:{s:64:"D:\phpstudy_pro\WWW\shejiao-back\app\admin\view\config\base.html";i:1694745077;s:57:"D:\phpstudy_pro\WWW\shejiao-back\app\admin\view\main.html";i:1664899404;s:63:"D:\phpstudy_pro\WWW\shejiao-back\app\admin\view\breadcrumb.html";i:1664899404;}*/ ?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title><?php echo xn_cfg('base.sys_name'); ?></title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <script>
        //全局上传文件端口
        var UPLOAD_FILE_URL = "<?php echo url('upload_files/upload'); ?>";
        //全局选择文件端口
        var SELECT_FILE_URL = "<?php echo url('upload_files/select'); ?>";
    </script>
    <script src="/static/admin/js/jquery-2.0.0.min.js"></script>
    <script src="/static/admin/js/common.js"></script>
    <script src="/static/admin/js/upload.js"></script>
    <script src="/static/admin/js/webuploader.min.js"></script>
    <link rel="stylesheet" href="/static/admin/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="/static/admin/style/layuiAdmin.css" media="all">
    <link rel="stylesheet" href="/static/admin/style/base.css" media="all">
    
</head>
<body>

<?php if(!empty($breadcrumb)): ?>
<div class="layui-card layadmin-header">
    <div class="layui-breadcrumb" lay-filter="breadcrumb" style="visibility: visible;">
    	<?php if(input('bcid') == '000'): ?>
        <a href="<?php echo url('admin/index/home'); ?>">主页</a>
        <a href="<?php echo url('admin/apply/index'); ?>">应用</a>
        <a><cite><?php echo input('title'); ?></cite></a>
        <?php endif; if(input('bcid') != '000'): ?>
        <a href="<?php echo url('admin/index/home'); ?>">主页</a>
        <?php if(is_array($breadcrumb) || $breadcrumb instanceof \think\Collection || $breadcrumb instanceof \think\Paginator): if( count($breadcrumb)==0 ) : echo "" ;else: foreach($breadcrumb as $key=>$vo): ?>
        <a><cite><?php echo htmlentities($vo['title']); ?></cite></a>
        <?php endforeach; endif; else: echo "" ;endif; ?>
        <?php endif; ?>
    </div>
</div>
<?php endif; ?>
<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
            <div class="layui-card">
                <div class="layui-card-header">系统设置</div>
                <div class="layui-card-body" pad15="">
                    <form action="<?php echo request()->url(); ?>" method="post" class="xn_ajax">
                        <div class="layui-form" wid100="" lay-filter="">
                            <div class="layui-form-item">
                                <label class="layui-form-label">系统名称</label>
                                <div class="layui-input-inline" style="width: 500px;">
                                    <input type="text" name="sys_name" value="<?php echo htmlentities($data['sys_name']); ?>" class="layui-input">
                                </div>
                            </div>                          
                            <div class="layui-form-item">
                                <label class="layui-form-label">后台名称</label>
                                <div class="layui-input-inline" style="width: 500px;">
                                    <input type="text" name="sitename" value="<?php echo htmlentities($data['sitename']); ?>" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">网站域名</label>
                                <div class="layui-input-inline" style="width: 500px;">
                                    <input type="text" name="siteurl" value="<?php echo htmlentities($data['siteurl']); ?>" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">备案号</label>
                                <div class="layui-input-inline" style="width: 500px;">
                                    <input type="text" name="sitebeian" value="<?php echo htmlentities($data['sitebeian']); ?>" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">安卓下载地址</label>
                                <div class="layui-input-inline" style="width: 500px;">
                                    <input type="text" name="app_android" value="<?php echo htmlentities($data['app_android']); ?>" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">IOS地址</label>
                                <div class="layui-input-inline" style="width: 500px;">
                                    <input type="text" name="app_ios" value="<?php echo htmlentities($data['app_ios']); ?>" class="layui-input">
                                </div>
                            </div>
<!--                        <fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;">-->
<!--                            <legend>会员等级设置</legend>-->
<!--                        </fieldset> -->
<!--                        <div class="layui-form-item">-->
<!--                            <label class="layui-form-label">发帖子获经验</label>-->
<!--                            <div class="layui-input-inline">-->
<!--                                <input type="text" name="add_goods_score" value="<?php echo htmlentities($data['add_goods_score']); ?>" class="layui-input">-->
<!--                            </div>-->
<!--                        </div>-->
<!--                        <div class="layui-form-item">-->
<!--                            <label class="layui-form-label">发圈子获经验</label>-->
<!--                            <div class="layui-input-inline">-->
<!--                                <input type="text" name="add_category_score" value="<?php echo htmlentities($data['add_category_score']); ?>" class="layui-input">-->
<!--                            </div>-->
<!--                        </div>-->
<!--                        <div class="layui-form-item">-->
<!--                            <label class="layui-form-label">发活动获经验</label>-->
<!--                            <div class="layui-input-inline">-->
<!--                                <input type="text" name="add_active_score" value="<?php echo htmlentities($data['add_active_score']); ?>" class="layui-input">-->
<!--                            </div>-->
<!--                        </div>-->
<!--                        <div class="layui-form-item">-->
<!--                            <label class="layui-form-label">等级提升需积分</label>-->
<!--                            <div class="layui-input-inline">-->
<!--                                <input type="text" name="user_leve_once" value="<?php echo htmlentities($data['user_leve_once']); ?>" class="layui-input">-->
<!--                            </div>-->
<!--                        </div>-->
<!--                        <fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;">-->
<!--                            <legend>全局设置</legend>-->
<!--                        </fieldset> -->
<!--                        <div class="layui-form-item">-->
<!--                            <label class="layui-form-label">发布帖子审核</label>-->
<!--                            <div class="layui-input-block">-->
<!--                                <input type="checkbox" name="add_goods_sh" value="1" <?php if($data['add_goods_sh'] == 1): ?> checked<?php endif; ?> lay-skin="switch" lay-text="直接通过|需要审核">-->
<!--                            </div>-->
<!--                        </div>-->
<!--                        <div class="layui-form-item">-->
<!--                            <label class="layui-form-label">发布圈子审核</label>-->
<!--                            <div class="layui-input-block">-->
<!--                                <input type="checkbox" name="add_category_sh" value="1" <?php if($data['add_category_sh'] == 1): ?> checked<?php endif; ?> lay-skin="switch" lay-text="直接通过|需要审核">-->
<!--                            </div>-->
<!--                        </div>-->
<!--                        <div class="layui-form-item">-->
<!--                            <label class="layui-form-label">发布活动审核</label>-->
<!--                            <div class="layui-input-block">-->
<!--                                <input type="checkbox" name="add_active_sh" value="1" <?php if($data['add_active_sh'] == 1): ?> checked<?php endif; ?> lay-skin="switch" lay-text="直接通过|需要审核">-->
<!--                            </div>-->
<!--                        </div>-->
                        <div class="layui-form-item">
                            <label class="layui-form-label">slogan</label>
                            <div class="layui-input-inline" style="width: 500px;">
                                <input type="text" name="slogan" value="<?php echo htmlentities($data['slogan']); ?>" autocomplete="off" class="layui-input">
                            </div>
                            <div class="layui-form-mid layui-word-aux">一句话口号，很多页面会用到</div>
                        </div>

                            <div class="layui-form-item">
                            <label class="layui-form-label">热门搜索</label>
                            <div class="layui-input-inline" style="width: 500px;">
                                <input type="text" name="sitekey" value="<?php echo htmlentities($data['sitekey']); ?>" autocomplete="off" class="layui-input">
                            </div>
                            <div class="layui-form-mid layui-word-aux">请用@分开关键词</div>
                        </div>


                         <div class="layui-form-item">
                                <label class="layui-form-label">客服电话</label>
                               <div class="layui-input-inline">
                                    <input type="text" name="kefu_tel" value="<?php echo htmlentities($data['kefu_tel']); ?>" class="layui-input">
                                </div>
                            </div>
                       
                     
                     
                        <div class="layui-form-item">
                            <label class="layui-form-label">主题配色</label>
                            <div class="layui-input-block">
                                <input type="radio" name="web_site_color" lay-filter="radio_storage" class="radio_storage" value="1" title="红色" <?php if($data['web_site_color'] == 1): ?>checked=""<?php endif; ?>>
                                <input type="radio" name="web_site_color" lay-filter="radio_storage" class="radio_storage" value="2" title="粉色" <?php if($data['web_site_color'] == 2): ?>checked=""<?php endif; ?>>
                                <input type="radio" name="web_site_color" lay-filter="radio_storage" class="radio_storage" value="3" title="紫色" <?php if($data['web_site_color'] == 3): ?>checked=""<?php endif; ?>>
                                <input type="radio" name="web_site_color" lay-filter="radio_storage" class="radio_storage" value="4" title="蓝色" <?php if($data['web_site_color'] == 4): ?>checked=""<?php endif; ?>>
                                <input type="radio" name="web_site_color" lay-filter="radio_storage" class="radio_storage" value="5" title="绿色" <?php if($data['web_site_color'] == 5): ?>checked=""<?php endif; ?>>
                                <input type="radio" name="web_site_color" lay-filter="radio_storage" class="radio_storage" value="6" title="黄色" <?php if($data['web_site_color'] == 6): ?>checked=""<?php endif; ?>>
                                <input type="radio" name="web_site_color" lay-filter="radio_storage" class="radio_storage" value="7" title="灰色" <?php if($data['web_site_color'] == 7): ?>checked=""<?php endif; ?>>
                            </div>
                        </div>
                        <!-- <div class="layui-form-item">
                            <label class="layui-form-label">主题颜色</label>
                            <div class="layui-input-inline">
                                <div class="layui-input-inline" style="width: 120px;">
                                    <input type="text" name="web_site_color" value="<?php echo htmlentities($data['web_site_color']); ?>" placeholder="请选择颜色" class="layui-input" id="test-form-input">
                                </div>
                                <div class="layui-inline" style="left: -11px;">
                                     <div id="test-form"></div>
                                </div>
                            </div>
                           
                            
                        </div> -->
                        <div class="layui-form-item">
                                <label class="layui-form-label">默认个人背景图</label>
                                <div class="layui-input-block">
                                    <?php echo xn_upload_one($data['fenxiao_image'],'fenxiao_image',0); ?>
                                </div>
                                 
                            </div>
                      
                        
                            <div class="layui-form-item">
                                <label class="layui-form-label">LOGO图</label>
                                <div class="layui-input-block">
                                    <?php echo xn_upload_one($data['site_logo'],'site_logo',0); ?>
                                </div>
                                 
                            </div>
                        
<!--                        <fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;">-->
<!--                            <legend>小程序配置</legend>-->
<!--                        </fieldset>-->
<!--                       <div class="layui-form-item">-->
<!--                            <label class="layui-form-label">腾讯地图key</label>-->
<!--                            <div class="layui-input-inline" style="width: 500px;">-->
<!--                                <input type="text" name="tx_map_key" value="<?php echo htmlentities($data['tx_map_key']); ?>" autocomplete="off" class="layui-input">-->
<!--                            </div>-->
<!--                            <div class="layui-form-mid layui-word-aux">小程序域名配置增加：https://apis.map.qq.com/</div>-->
<!--                        </div>-->
<!--                        <div class="layui-form-item">-->
<!--                            <label class="layui-form-label">小程序名称</label>-->
<!--                            <div class="layui-input-inline">-->
<!--                                <input type="text" name="xcx_title" value="<?php echo htmlentities($data['xcx_title']); ?>" class="layui-input">-->
<!--                            </div>-->
<!--                        </div>-->
<!--                        <div class="layui-form-item">-->
<!--                            <label class="layui-form-label">APPID</label>-->
<!--                            <div class="layui-input-inline">-->
<!--                                <input type="text" name="xcx_appid" value="<?php echo htmlentities($data['xcx_appid']); ?>" class="layui-input">-->
<!--                            </div>-->
<!--                        </div>-->
<!--                        <div class="layui-form-item">-->
<!--                            <label class="layui-form-label">SECRET</label>-->
<!--                            <div class="layui-input-inline">-->
<!--                                <input type="text" name="xcx_secret" value="<?php echo htmlentities($data['xcx_secret']); ?>" class="layui-input">-->
<!--                            </div>-->
<!--                        </div>-->
<!--                        <div class="layui-form-item">-->
<!--                            <label class="layui-form-label">原始ID</label>-->
<!--                            <div class="layui-input-inline">-->
<!--                                <input type="text" name="xcx_original_id" value="<?php echo htmlentities($data['xcx_original_id']); ?>" class="layui-input">-->
<!--                            </div>-->
<!--                        </div>-->
<!--                         <div class="layui-form-item">-->
<!--                                <label class="layui-form-label">小程序审核</label>-->
<!--                                <div class="layui-input-block">-->
<!--                                    <input type="checkbox" name="xcx_sh" value="1" <?php if($data['xcx_sh'] == 1): ?> checked<?php endif; ?> lay-skin="switch" lay-text="通过|审核期">-->
<!--                                </div>-->
<!--                            </div>-->
                        <fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;">
                            <legend>H5和APP短信配置</legend>
                        </fieldset>
                     <!--    <div class="layui-form-item">
                            <label class="layui-form-label">腾讯地图key</label>
                            <div class="layui-input-inline" style="width: 500px;">
                                <input type="text" name="tx_map_key" value="<?php echo htmlentities($data['tx_map_key']); ?>" autocomplete="off" class="layui-input">
                            </div>
                            <div class="layui-form-mid layui-word-aux">小程序域名配置增加：https://apis.map.qq.com/</div>
                        </div> -->
                        <div class="layui-form-item">
                            <label class="layui-form-label">阿里短信ID</label>
                            <div class="layui-input-inline">
                                <input type="text" name="sms_aliid" value="<?php echo htmlentities($data['sms_aliid']); ?>" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">阿里短信KEY</label>
                            <div class="layui-input-inline">
                                <input type="text" name="sms_alikey" value="<?php echo htmlentities($data['sms_alikey']); ?>" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">短信模板ID</label>
                            <div class="layui-input-inline">
                                <input type="text" name="sms_alimobanid" value="<?php echo htmlentities($data['sms_alimobanid']); ?>" class="layui-input">
                            </div>
                        </div>
                         <div class="layui-form-item">
                            <label class="layui-form-label">短信签名</label>
                            <div class="layui-input-inline">
                                <input type="text" name="sms_signname" value="<?php echo htmlentities($data['sms_signname']); ?>" class="layui-input">
                            </div>
                        </div>
                        
                         <div class="layui-form-item">
                                <label class="layui-form-label">短信配置</label>
                                <div class="layui-input-block">
                                    <input type="checkbox" name="sms_is" value="1" <?php if($data['sms_is'] == 1): ?> checked<?php endif; ?> lay-skin="switch" lay-text="发送短信|不发直接提示验证码">
                                </div>
                            </div>
                        <fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;">
                            <legend>微信支付配置</legend>
                        </fieldset>
                        <div class="layui-form-item">
                            <label class="layui-form-label">支付商户号</label>
                            <div class="layui-input-inline">
                                <input type="text" name="pay_shanghu" value="<?php echo htmlentities($data['pay_shanghu']); ?>" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">支付密钥</label>
                            <div class="layui-input-block">
                                <input type="text" name="pay_scret" value="<?php echo htmlentities($data['pay_scret']); ?>" class="layui-input">
                            </div>
                        </div>

                         <div class="layui-form-item">
                            <label class="layui-form-label">支付证书</label>
                            <div class="layui-input-block">
                               请手动把微信支付生成的apiclient_cert.pem和apiclient_key.pem放到网站根目录下的\extend\wechat\cert文件夹里。（用于自动退款）
                            </div>
                        </div>
                        
          
                            <div class="layui-form-item">
                                <div class="layui-input-block">
                                    <button class="layui-btn" lay-submit="" lay-filter="set_website">确认保存</button>
                                </div>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>


<script src="/static/admin/layui/layui.all.js"></script>
<script src="/static/admin/js/admin.js"></script>

<script>
    layui.use([ 'element', 'jquery', 'colorpicker', 'layer' ], function() {
       var $ = layui.jquery;
       var element = layui.element;
       var colorpicker = layui.colorpicker;
       var layer = layui.layer;
       //常规使用
       colorpicker.render({
            elem : '#web_color',
            change : function(color) { //颜色改变的回调
                layer.tips('选择了：' + color, this.elem, {
                    tips : 1
                });
            }
       });
       colorpicker.render({
            elem: '#test-form'
            ,color: '<?php echo htmlentities($data['web_site_color']); ?>'
            ,done: function(color){
                $('#test-form-input').val(color);
            }
         });
        colorpicker.render({
            elem: '#web_site_text_color-form'
            ,color: '<?php echo htmlentities($data['web_site_text_color']); ?>'
            ,done: function(color){
                $('#web_site_text_color-input').val(color);
            }
        });
       
  });
    
</script>

</body>
</html>